package day03.test3;

public class test3 {
    public static void main(String[] args) {
        int password = 1234;
        int input1 = 1235;
        int input2 = 1234;
        if(input1 == password)
        {
            System.out.println("密码1正确");
        }
        else if(input2 == password)
        {
            System.out.println("密码2正确");
        }
        else
        {
            System.out.println("密码错误");
        }
        int switch2 = 2;
        switch(switch2)//字符串  c常量
        {
            case 1:
                System.out.println("这是1");
                break;
            case 2:
                System.out.println("这是2");
            case 3:
                System.out.println("这是3");
            case 4:
                System.out.println("这是4");
                break;
            default:
                System.out.println("输入错误");
                break;
        }
    }
}
